
#include <BTime>
#include <BNetwork>
#include "member_BNetwork.h"

using namespace BWE;

#define member					(*(member_BNetwork*)_ptr)
#define member_allocate()		_ptr = new member_BNetwork(this)
#define member_release()		delete (member_BNetwork*)_ptr

BNetwork::BNetwork(const BString& name) : BObject(name)
{
	member_allocate();
}
BNetwork::~BNetwork()
{
	member_release();
}

BNetwork::Type BNetwork::type() const
{
	return member.type;
}

int BNetwork::cardIndex() const
{
	return member.cardIndex;
}
const BString& BNetwork::adapterName() const
{
	return member.adapterName;
}
const BString& BNetwork::description() const
{
	return member.description;
}
const BString& BNetwork::ipAddress() const
{
	return member.ipAddress;
}
const BString& BNetwork::ipMask() const
{
	return member.ipMask;
}
const BString& BNetwork::gateway() const
{
	return member.gateway;
}
const BString& BNetwork::dhcpServer() const
{
	return member.dhcpServer;
}
const BString& BNetwork::macAddress() const
{
	return member.macAddress;
}

